package tothreedesignmodel.visitor;

/**
 * @author lzhphantom
 * @description
 * @date 创建于 23:56 2020/8/1
 * @modified
 */
public class ConcreteVisitorB implements Visitor {
    @Override
    public void visit(ConcreteElementA A) {
        System.out.println(this.getClass().getName() + A.operationA());
    }

    @Override
    public void visit(ConcreteElementB B) {
        System.out.println(this.getClass().getName() + B.operationB());
    }
}
